package com.wxw.BaseLibrary.http;

import com.yolanda.nohttp.Response;

/**
 * Created by david on 2016/5/6.
 */
public interface HttpListener<T> {
    /**
     * 请求成功
     * @param what
     * @param response
     */
    void onSucceed(int what, Response<T> response);

    /**
     * 请求失败
     * @param what
     * @param url
     * @param tag
     * @param error
     * @param resCode
     * @param ms
     */
    void onFailed(int what, String url, Object tag, CharSequence error, int resCode, long ms);
}
